package com.feicheng.iou.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author tianchunlei
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 学生编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生姓名
     */
    private String name;

    /**
     * 身份证ID
     */
    private String secId;

    /**
     * 身份证正面
     */
    private String secFrontUrl;

    /**
     * 身份证反面
     */
    private String secBackUrl;

    /**
     * 身份证手持
     */
    private String secHandleUrl;

    /**
     * 联系电话
     */
    private String tel;

    /**
     * 银行账户
     */
    private String account;

    /**
     * 银行预留电话
     */
    private String accountTel;

    /**
     * 联系地址
     */
    private String address;

    /**
     * 邮件
     */
    private String eMail;

    /**
     * 学历
     */
    private String degree;

    /**
     * 专业
     */
    private String major;

    /**
     * 毕业院校
     */
    private String graduate;

    //格式转换 String 转换成 LocalTime
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birth;

    //格式转换 String 转换成 LocalTimea
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime graduateTime;

    private Integer cu;
    //格式转换 String 转换成 LocalTime
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ct;

    private Integer uu;
    //格式转换 String 转换成 LocalTime
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ut;

    @TableLogic
    @TableField(select = false)
    private Integer isDeleted;


}
